/*
 * @ProjectName: 编程学习
 * @Copyright:   2019 HangZhou Yi Dev, Ltd. All Right Reserved.
 * @address:     https://yiyuery.github.io/
 * @date:        2019/5/20 20:57
 * @email:       xiazhaoyang@live.com
 * @description: 本内容仅限于编程技术学习使用，转发请注明出处.
 */
package com.example.component.analyzer.core.model;

/**
 * <p>
 *
 * </p>
 *
 * @author Yi
 * @version v1.0.0
 * @date 2019-07-03 22:17
 * @modificationHistory=========================逻辑或功能性重大变更记录
 * @modify By: {修改人} 2019-07-03
 * @modify reason: {方法名}:{原因}
 * ...
 */

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name="tb_gold")
public class Gold {

    /**
     * sourceCurrencyCode : 035
     * targetCurrencyCode : 001
     * ccygrpNm : 人民币金/人民币
     * buyRate : 314.40
     * sellRate : 313.90
     * currPercentDiff : +1.254%
     * currDiff : +3.89
     * priceTime : 20190703221616
     * tranCode : T
     * sortPriority : 38
     * referPrice : 314.15
     * openPrice : 310.26
     * maxPrice : 317.69
     * minPrice : 310.09
     */

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long recordId;

    private String sourceCurrencyCode;
    private String targetCurrencyCode;
    private String ccygrpNm;
    private String buyRate;
    private String sellRate;
    private String currPercentDiff;
    private String currDiff;
    private String priceTime;
    private String tranCode;
    private Integer sortPriority;
    private String referPrice;
    private String openPrice;
    private String maxPrice;
    private String minPrice;
    private Date createTime;
}
